﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NetDiskPRJ.Common.DEncrypt;

namespace SysImplementKit
{
    public partial class DESKitDlgForm : Form
    {
        public DESKitDlgForm()
        {
            InitializeComponent();
        }

        private void btnEncrypt_Click(object sender, EventArgs e)
        {
            txtAfter.Text = DESEncrypt.Encrypt(txtBefore.Text.Trim());
        }

        private void btnDecrypt_Click(object sender, EventArgs e)
        {
            txtBefore.Text = DESEncrypt.Decrypt(txtAfter.Text.Trim());
            
        }
    }
}
